import http from '@/config/request'
import { type AxiosResponse } from 'axios'

/** 获取首页数据统计 */
export const homeGetStatistic = () => {
  return new Promise((resolve, reject) => {
    http.get('/api/statistic', {}).then((res: AxiosResponse) => {
      resolve(res)
    })
  })
}

/** 根据标签id获取该标签下的文章*/
// export const getArticleListByTagId = (params:any) => {
//   return new Promise((resolve, reject) => {
//     http.post("/api/article/getArticleListByTagId", params).then((res) => {
//       resolve(res);
//     });
//   });
// };
